<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="Pragma" content="no-cache" />
  <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
  <meta http-equiv="Expires" content="0" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8">

  <title>Astable</title>
  <link rel="shortcut icon" href="assets/icon/icon.png">
  
  <style>
    @font-face {
      font-family: "Harmony";
      src: url("assets/Harmony.ttf") format("truetype");
    }
  </style>
  
  <style>
    html,
    body {
      width: 100%;
      max-width: 100%;
      height: 100%;
      max-width: 100%;
      margin: 0;
      padding: 0;
      font-family: Harmony;
    }

    .main {
      box-sizing: border-box;
      width: 100%;
      height: 100%;
      padding: 1em;
      position: relative;
      font-size: 12px;
      background: #F6F9FC;
    }

    .main .logo {
      width: 155px;
      height: 50px;
      background: url('https://gitee.com/moluopro/res/raw/master/Apps/icons/Astable.png') no-repeat;
      background-size: contain;
    }

    .main .slogan {
      margin: 1.5em 0;
      text-align: center;
      color: #515151;
      font-weight: lighter;
    }

    .main .tip {
      text-align: center;
      color: #7c7777;
    }

    .main .tip .emphasis {
      color: #dada3a;
      font-weight: 500;
      font-size: 1.5em;
      padding: 0 0.2em;
    }

    .main .bottom {
      padding: 0 1em;
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      text-align: center;
      color: #cece77;
      font-size: 1.2em;
    }

    .main .bottom div {
      margin: 1em 0;
      display: none;
    }

    .main .bottom button {
      width: 100px;
      height: 50px;
      border: none;
      line-height: 1em;
      border-radius: 30px;
      background-color: #f1f181;
      font-size: 1em;
      color: black;
      transition: transform .2s;
    }

    .main .app_show {
      min-width: 300px;
      min-height: 200px;
      width: 60%;
      height: 60%;
      margin: 0 auto;
      background: url('./assets/app_view.png') center center no-repeat;
      background-size: contain;
    }

    button:hover {
      transform: scale(1.1);
    }

  </style>
</head>

<body>
  <div class="main">
    <div class="logo"></div>
    <h1 class="slogan"><span style="color:#d2d224;font-size: 2em;">Astable</span><br>Beautiful and powerful structural mechanics solver !</h1>
    <div class="app_show"></div>
    <div class="bottom">
        <button class="download" id="android">
          Android
        </button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <button class="download" id="ios">
          iPad / Mac
        </button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <button class="download" id="win">
          Windows
        </button>
        <!-- <button class="download" id="mac">
          MacOS
        </button> -->
        <!-- <button class="download" id="linux">
          Linux
        </button> -->
      <br><br>
    </div>
  </div>
  <script>

      urls = {
        "android": "https://play.google.com/store/apps/details?id=com.abandoft.astable",
        "ios": "https://apps.apple.com/app/id1665840344",
        "win": "https://apps.microsoft.com/store/detail/9NQM9B17MGJS",
        "mac": "https://apps.apple.com/app/id1665840344",
        "linux": "",
      }

    var button = document.getElementById("android");
    button.addEventListener('click', function () {
      window.open(urls["android"])
    })
    var button = document.getElementById("ios");
    button.addEventListener('click', function () {
      window.open(urls["ios"])
    })
    var button = document.getElementById("win");
    button.addEventListener('click', function () {
      window.open(urls["win"])
    })
    // var button = document.getElementById("mac");
    // button.addEventListener('click', function () {
    //   window.open(urls["mac"])
    // })
    // var button = document.getElementById("linux");
    // button.addEventListener('click', function () {
    //   window.open(urls["linux"])
    // })

  </script>
</body>

</html>